package com.itydl.a03.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * @author ydl
 * @version 土司单例类
 */
public class ToastUtils {

    private static Toast sToast;

    public static void show(Context context, String message) {
        if(sToast == null){
            sToast = Toast.makeText(context, "", Toast.LENGTH_SHORT);
        }else{
            sToast.setText(message);
            sToast.show();
        }
    }
}
